// 路由跳转组件
import React from 'react'
// 路由
import { useNavigate } from 'react-router-dom';

// props.path 要跳转到哪里去

export default function Jump(props: any) {
  let navigate = useNavigate()
  function handleClick() {
    navigate(props.path)
  }
  return (
    <div onClick={handleClick}>
     {props.children}
    </div>
    
  )
}